<template>
  <div class="content-block block-3">
    <div class="info-head">{{ title }}</div>
    <div class="info-content">
      <v-chart :option="chartOption" style="width: 100%;height: 260px;"></v-chart>
    </div>
  </div>
</template>

<script>
export default {
  name: 'grid-item-three',
  props: ['title'],
  computed: {
    chartOption () {
      return {
        tooltip: {
          trigger: 'axis',
          axisPointer: {
            type: 'cross'
          }
        },
        xAxis: {
          type: 'category',
          data: ['2022-10', '2022-11', '2022-12', '2023-1', '2023-2', '2023-3', '2023-4']
        },
        yAxis: {
          type: 'value',
          name: '万吨标准煤'
        },
        series: [
          {
            type: 'line',
            name: '城市生活垃圾用于燃料',
            smooth: true,
            data: [820, 932, 901, 934, 1290, 1330, 1320],
          },
          {
            type: 'line',
            name: '电力',
            smooth: true,
            data: [840, 942, 911, 964, 1390, 1350, 1330],
          }
        ]
      }
    }
  }
}
</script>

<style scoped>

</style>
